<?php
namespace Core\CoreContracts;

/*
	Balance definition
*/
class Balance {

	//Balance Id
	public $Id;
	
	/**
     * @var int
     */
	public $Account;
	
	// Start date balance date
	public $StartDateBalance;
	
	// End date balance date
	public $EndDateBalance;
	
	// Amount balance
	public $AmountBalance;
	
	// The modification date
	public $ModificationDate;
	
	// The creation date
	public $CreationDate;
	
	//Default constructor
	public function __construct()  
    {  
    }
	
	public static function Create($startDateBalance, $endDateBalance, $amountBalance)
	{
		$balance = new Balance();
		$balance->StartDateBalance = $startDateBalance;
		$balance->EndDateBalance = $endDateBalance;
		$balance->AmountBalance = $amountBalance;
		$balance->ModificationDate = date("Y-m-d H:i:s");
		$balance->CreationDate = date("Y-m-d H:i:s");
		return $balance ;
	}
}
?> 